package com.imoocdl.utils;

/**
 * Created by pc on 2018/7/20.
 */
public class MathUtil {
    private static final  Double MONEY_RANGE = 0.01;
    /**
     * 比较两个金额是否相等
     */
    public static Boolean equals(Double d1,Double d2){
        Double result = Math.abs(d1 - d2); //绝对值
        if( result < result){
            return true;
        }else {
            return false;
        }
    }
}
